/**
 * Copyright (C) 2018-2019
 * All rights reserved, Designed By www.joolun.com
 * 注意：
 * 本软件为www.joolun.com开发研制，项目使用请保留此说明
 */
package com.ruoyi.mall.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.mall.api.entity.ShoppingCart;

import java.util.List;

/**
 * 购物车
 *
 * @author JL
 * @date 2019-08-29 21:27:33
 */
public interface RemoteShoppingCartService {

    IPage<ShoppingCart> page2(IPage<ShoppingCart> page, ShoppingCart shoppingCart);

    Long count(ShoppingCart query);

    boolean save(ShoppingCart shoppingCart);

    boolean updateById(ShoppingCart shoppingCart);

    boolean removeByIds(List<String> ids);

    void removeBySpuIdAndUserId(String id, String userId);

    IPage page(Page page, ShoppingCart shoppingCart);

    ShoppingCart getById(String id);

    boolean removeById(String id);
}
